<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <h1>123</h1>
    <button>点我打开相册</button>
    <img width="200px" src="" alt="">
    <!-- 引入调试控制台 -->
<script src="https://cdn.staticfile.net/eruda/3.3.0/eruda.min.js"></script>
<script>eruda.init();</script>
    <script>
        document.querySelector('button').onclick= async () => {
        const str =  await mk.getArea()
        // document.querySelector('img').src = 'data:image/png;base64,'+str

        }
    </script>
    
</body>
</html>